//
//  IntAxisValueFormatter.swift
//  ChartsDemo-iOS
//
//  Created by Jacob Christie on 2017-07-09.
//  Copyright © 2017 jc. All rights reserved.
//

import Foundation
import Charts

public class IntAxisValueFormatter: NSObject, IAxisValueFormatter {
    public func stringForValue(_ value: Double, axis: AxisBase?) -> String {
        switch value {
        case 0:
            return "I2"
        case 1:
            return "GP"
        case 2:
            return "EC"
        case 3:
            return "P2"
        case 4:
            return "IC"
        default:
            return ""
        }
//        return "\(Int(value))"
    }
}
